package com.goldgov.utils;

import java.util.Map;

import org.jsoup.Connection;
import org.jsoup.Connection.Method;
import org.jsoup.Jsoup;

/** 
 * @ClassName: MobileStaticData 
 * @Description: TODO
 * @author hanxiangyu
 * @date 2018年6月27日 上午11:08:45 
 */
public class MobileStaticData {
	
	public static String getStaticData(String url,Map<String, String> map) throws Exception {
//		String url="http://rap2api.taobao.org/app/mock/13521/forgetPwd";
		Connection.Response res = Jsoup.connect(url)
			.data(map)
			.method(Method.GET)
			.ignoreContentType(true)
			.execute();
		return res.body();
	}
	
//	public static JSONArray getStaticDataArray(String url,Map<String, String> map) throws Exception {
////		String url="http://rap2api.taobao.org/app/mock/13521/forgetPwd";
//		Connection.Response res = Jsoup.connect(url)
//				.data(map)
//				.method(Method.GET)
//				.ignoreContentType(true)
//				.execute();
//		String body = res.body();
//		JSONObject json=JSONObject.parseObject(body).getJSONObject("data");
////		JSONArray jsonList=json.getJSONArray(body);
//		return jsonList;
//		
//	}
	
	
}
